AddMany Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds all the items in collection to the set. If the set already contains an item equal to one of the items in collection, that item will be replaced.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public void AddMany(
	IEnumerable<T> collection
)
Visual Basic (Declaration)
Public Sub AddMany ( _
	collection As IEnumerable(Of T) _
)
Visual C++
public:
void AddMany (
	IEnumerable<T>^ collection
)

Parameters

collection
IEnumerable<(Of <T>)>
A collection of items to add to the set.

Remarks

Equality between items is determined by the comparison instance or delegate used to create the set.

Adding the collection takes time O(M), where M is the number of items in collection.

See Also